import request from "@/utils/request"

function uploadFileOss(data){
  return request({
    url:`/lejuAdmin/material/uploadFileOss`,
    method:"POST",
    data
  })
}
function addArticle(data){
  return request({
    url:`/lejuAdmin/productArticle/addArticle`,
    method:"POST",
    data
  })
}
function updateArticle(data){
  return request({
    url:`/lejuAdmin/productArticle/updateArticle`,
    method:"POST",
    data
  })
}
function productArticle(id){
  return request({
    url:`/lejuAdmin/productArticle/productArticle/${id}`
  })
}

export {
  uploadFileOss,
  addArticle,
  productArticle,
  updateArticle
}